<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:forEach items="${commissionList}" var="commission">
	<tr>
		<td class="td" style="padding-left:10px;"><fmt:formatDate value="${commission.createdAt }" pattern="yyyy/MM/dd" /></td>
		<td class="td">
			<img src="${staticPath}/images/tuandui.png">
		</td>
		<td class="td">
			<p>
				<fmt:formatNumber value="${commission.money * 0.01}" pattern="#,###.##" />
			</p>
			<p>团队提成</p>
		</td>
		<td class="td">
			<c:if test="${commission.referCode != null }">
				<c:if test="${commission.referCode.length() > 8 }">
					${fn:substring(commission.referCode, 0, 4)}****${fn:substring(commission.referCode, commission.referCode.length() - 5, commission.referCode.length() - 1)}
				</c:if>
				<c:if test="${commission.referCode.length() <= 8 }">
					${fn:substring(commission.referCode, 0, 4)}****
				</c:if>
			</c:if>
		</td>
	</tr>
</c:forEach>
<c:if test="${over == true }">
	<input type="hidden" id="over" name="over" value="${over }" />
</c:if>
